<div class="header">
    <back-Btn></back-Btn>
    创建任务
    <div class="right-btn" ng-click="newtask.submit()">
        提交
    </div>
</div>
<div class="container finance taskdetail">
    <div class="list f_sk">
<!--         <div class="list-item flex icon_menu" ng-click="newtask.showSheet('statusObj')">
            <div class="w40 c9">创建任务至:</div>
            <div class="w60" ng-class="{cd9:!newtask.param.statusContent}">{{newtask.param.statusContent||"必填"}}</div>
        </div>
 -->        <div class="task-item">
            <p>请输入任务名称</p>
            <input type="text" ng-model="newtask.param.title" />
        </div>
        <div class="task-item">
            <p>请输入任务详情</p>
            <textarea name="" id="" cols="30" rows="10" ng-model="newtask.param.content"></textarea>
        </div>
        <div class="task-item">
            <p>开始时间</p>
            <input type="text" date-directive datetype="datetime" ng-model="newtask.param.startDate" class="c0 icon_clock" />
        </div>
        <div class="task-item">
            <p>结束时间</p>
            <input type="text" date-directive datetype="datetime" ng-model="newtask.param.endDate" class="c0 icon_clock" />
        </div>
        <div class="task-item">
            <p>负责人</p>
            <div ng-click="newtask.goaddjoinpeople('incharge')" class="text icon_userA">{{newtask.param.userName}}</div>
        </div>
        <div class="task-item">
            <p class="celled">参与人</p>
            <div class="joinpeople-list mt10">
                <div class="joinpeople-item tc" ng-repeat="item in newtask.param.joinPersons" track-by="item.userId">
                    <div class="item-avtar lh60">{{item.userName|username}}</div>
                    <p class="te">{{item.userName}}</p>
                    <p class="icon_del1" ng-click="newtask.deljoinconfirm($index)">del</p>
                </div>
                <div ng-click="newtask.goaddjoinpeople('participator')" class="joinpeople-item tc">
                    <div class="icon_addpic"></div>
                </div>
            </div>
        </div>
        <div class="task-item">
            <p>优先级</p>
            <div ng-click="newtask.showSheet('priorityObj')" class="text icon_prive">{{newtask.param.priorityContent}}</div>
        </div>
        <div class="task-item">
            <p>重复</p>
            <div ng-click="newtask.showSheet('repetitionObj')" class="text icon_repeat">{{newtask.param.repetitionContent}}</div>
        </div>
        <div class="task-item">
            <p class="celled">子任务 <span class="c-succ fr" ng-click="newtask.addsubtask()">添加子任务</span></p>
            <div class="subtask-list mt10">
                <div class="subtask-item flex" ng-repeat="item in newtask.param.subTasks" track-by="item.userId">
                    <div class="te">{{item.content}}</div>
                    <div class="tr">{{item.userName}} {{item.finishedDate|dateFmt:'MM月dd日'}}<span class="icon_del2" ng-click="newtask.deltaskconfirm($index)"></span></div>
                </div>
            </div>
        </div>
        <div class="task-item">
            <p>任务开始提醒</p>
            <div ng-click="newtask.showSheet('startNoticeTimeObj')" class="text icon_remind" ng-class="{icon_remindA:newtask.param.startNoticeTimeContent}"><span ng-show="!newtask.param.startNoticeTimeContent"  class="c9">请选择提醒时间</span>{{newtask.param.startNoticeTimeContent}}</div>
        </div>
        <div class="task-item">
            <p>任务截至提醒</p>
            <div ng-click="newtask.showSheet('endNoticeTimeObj')" class="text icon_remind" ng-class="{icon_remindA:newtask.param.endNoticeTimeContent}"><span ng-show="!newtask.param.endNoticeTimeContent" class="c9">请选择提醒时间</span>{{newtask.param.endNoticeTimeContent}}</div>
        </div>
        <div class="btn-tip btn c1 mt10" ng-click="newtask.togglePublic()">{{newtask.param.visibilityInPublicContent}}</div>
    </div>
</div>
<sheet-action ng-show="newtask.sheetObj.ifshowSheet" sheet-data="newtask.sheetObj"></sheet-action>
